package com.easyj.admin.db.model;

import java.io.Serializable;
import java.util.Date;

/**
 *   @title 系统参数设置
 *   @remark key,name ,memo 为系统定义（事先录入），value 可设置。
 *   @table b_sys_params
 *   @primaryKey key
 *   @enablePage false
 */
public class SysParams implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *   @title 
     *   @remark 
     *   @column key
     *   @dataType VARCHAR
     *   @length 32
     *   @scale 0
     *   @nullable false
     *   @jdbcType VARCHAR
     */
    private String key;

    /**
     *   @title 名称
     *   @remark 
     *   @column name
     *   @dataType VARCHAR
     *   @length 100
     *   @scale 0
     *   @nullable false
     *   @jdbcType VARCHAR
     */
    private String name;

    /**
     *   @title 说明
     *   @remark 
     *   @column memo
     *   @dataType VARCHAR
     *   @length 200
     *   @scale 0
     *   @nullable true
     *   @jdbcType VARCHAR
     */
    private String memo;

    /**
     *   @title 
     *   @remark 
     *   @column value
     *   @dataType VARCHAR
     *   @length 64
     *   @scale 0
     *   @nullable true
     *   @jdbcType VARCHAR
     */
    private String value;

    /**
     *   @title 
     *   @remark 
     *   @column modify_time
     *   @dataType DATETIME
     *   @length 19
     *   @scale 0
     *   @nullable true
     *   @jdbcType TIMESTAMP
     */
    private Date modifyTime;

    /**
     *   @title 
     *   @remark 
     *   @column operator_id
     *   @dataType BIGINT
     *   @length 19
     *   @scale 0
     *   @nullable true
     *   @jdbcType BIGINT
     */
    private Long operatorId;

    /**
     *   @title 是否系统定义
     *   @remark 
     *   @column is_system
     *   @dataType BIT
     *   @length 1
     *   @scale 0
     *   @nullable false
     *   @jdbcType BIT
     */
    private Boolean isSystem;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    public Boolean getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(Boolean isSystem) {
        this.isSystem = isSystem;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysParams other = (SysParams) that;
        return (this.getKey() == null ? other.getKey() == null : this.getKey().equals(other.getKey()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getKey() == null) ? 0 : getKey().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", key=").append(key);
        sb.append(", name=").append(name);
        sb.append(", memo=").append(memo);
        sb.append(", value=").append(value);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", isSystem=").append(isSystem);
        sb.append("]");
        return sb.toString();
    }
}